import { axios } from '@/utils/request'

export function merchantList(params) {
  return axios({
    url: '/wechat-mini-merchant/list',
    method: 'get',
    params
  })
}

export function setMerchantInfo(data) {
  return axios({
    url: 'wechat-mini-merchant/set-merchant-info',
    method: 'post',
    data
  })
}

export function getMerchantInfo(params) {
  return axios({
    url: 'wechat-mini-merchant/set-merchant-info',
    method: 'get',
    params
  })
}

export function getCountry() {
  return axios({
    url: 'wechat-mini-merchant/get-country',
    method: 'post'
  })
}


export function useMerchant(data) {
  return axios({
    url: 'wechat-mini-merchant/mini-is-use',
    method: 'post',
    data
  })
}
